<?php
class username
{
	public static function getUsernameFromUserid($userid)
	{
		$get=database::LimitQuery("userinfo",array(
		'select' => 'username',
		'condition' => array(
		'userid' => $userid
		)
		));
		if(!empty($get))
		{
			return $get[0]['username'];
		}
		else
		{
			return NULL;
		}
		
	}
}
?>